package com.citycloud.ccuap.tc.admin.entity;

import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;
import org.springframework.data.repository.query.parser.Part.Type;

import com.citycloud.ccuap.framework.service.Model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/***
 * @className SysDeptmentMerge
 * @author wangyj
 * @Date 2019/12/3 10:06
 * @description
 */
@Data
@ApiModel("部门合表")
@Entity(table = "oauth_client_details")
public class OauthClientDetails implements Model {
	private static final long serialVersionUID = 1L;

	@Column(name = "client_id")
	@Condition
	@Id(strategy = GenerationType.ASSIGNATION)
	private String clientId;

	@Column(name = "resource_ids")
	@Condition
	private String resourceIds;

	@Column(name = "client_secret")
	@Condition
	private String clientSecret;

	@Column(name = "secret")
	@Condition
	private String secret;

	@Column(name = "scope")
	@Condition(type = Type.LIKE)
	private String scope;

	@Column(name = "authorized_grant_types")
	@Condition(type = Type.LIKE)
	private String authorizedGrantTypes;

	@Column(name = "web_server_redirect_uri")
	@Condition(type = Type.LIKE)
	private String webServerRedirectUri;

	@Column(name = "authorities")
	@Condition(type = Type.LIKE)
	private String authorities;

	@Column(name = "access_token_validity")
	@Condition
	private String accessTokenValidity;

	@Column(name = "refresh_token_validity")
	@Condition(type = Type.LIKE)
	private String refreshTokenValidity;

	@Column(name = "additional_information")
	@Condition
	private String additionalInformation;

	@Column(name = "autoapprove")
	@Condition
	private String autoapprove;
}